package com.core.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;
/**
 * 用户
 */
@TableName("user")
public class User {
	/** 创建时间 */
  @TableField("`create_time`")
	private Date createTime;
	/** 主键 */
  @TableField("`id`")
	private String id;
	/** 登陆名 */
  @TableField("`login_name`")
	private String loginName;
	/** 昵称 */
  @TableField("`name`")
	private String name;
	/** 密码 */
  @TableField("`password`")
	private String password;
	/** 用户状态1正常0禁用 */
  @TableField("`status`")
	private Integer status;

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public Date getCreateTime() {
		return this.createTime;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getId() {
		return this.id;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	public String getLoginName() {
		return this.loginName;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public String getName() {
		return this.name;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getPassword() {
		return this.password;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public Integer getStatus() {
		return this.status;
	}

	@Override
    public boolean equals(Object o) {
        if (this == o) { return true; }
        if (o == null || getClass() != o.getClass()) {return false;}
        User that = (User) o;
        return id.equals(that.id);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(id);
    }
    
    @Override
    public String toString() {
        return "User{" +
		"createTime=" + createTime +
		",id='" + id + "'" + 
		",loginName='" + loginName + "'" + 
		",name='" + name + "'" + 
		",password='" + password + "'" + 
		",status='" + status + "'" + 
                '}';
    }
	
}